home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_inf_coredoor.cog < prev    next >
Text File  |  1999-11-15  |  2KB  |  73 lines

  1. # Jones 3D Cog Script
  2. #
  3. # INF_CoreDoor.cog
  4. #
  5. # This is the generic door with a camera attached
  6. #
  7. # [SXC]
  8. #
  9. # (C) 1998 LucasArts Entertainment Co. All Rights Reserved
  10. # ========================================================================================
  11.  
  12. symbols
  13.  
  14.     message     startup
  15.     message     activate
  16.     
  17.     thing       coredoor
  18.     thing       doorbutn
  19.     
  20.     cog         cutscenecog
  21.     
  22.     sector      doorsector     
  23.     
  24.     thing       player      local
  25.     
  26.     int         bmoved=0    local
  27.       
  28. end
  29.  
  30. # ========================================================================================
  31.  
  32. code
  33.  
  34. #........................................................................................
  35. startup:
  36.  
  37.     player = GetLocalPlayerThing();
  38.     SetSectorAdjoins(doorsector, 0);
  39.     
  40.     return;
  41.  
  42. #........................................................................................
  43. activate:
  44.  
  45.     if ((GetSenderRef() == doorbutn) && (bmoved != 1))
  46.     {
  47.         bmoved = 1;
  48.         StopThing(player);
  49.         SetActorFlags(player, 0x200000);
  50.         PlayMode(player, 61, 0);
  51.         Sleep(0.35);
  52.         MoveToFrame(doorbutn, 1, 1);
  53.         WaitForStop(doorbutn);
  54.         WaitForStop(doorbutn);
  55.         SetSectorAdjoins(doorsector, 1);
  56.         MoveToFrame(coredoor, 1, 1);
  57.         WaitForStop(coredoor);
  58.         Sleep(1);
  59.         //For HAL-start the Turner cutscene here
  60.         //SendMessage(cutscenecog, user0);
  61.         //Print("Play Turner Cutscene Now");
  62.         ClearActorFlags(player, 0x200000);
  63.         
  64.     }
  65.     return;   
  66.     
  67.     
  68. #........................................................................................                    
  69.  
  70. end
  71.  
  72.  
  73.